<?php include 'header.php' ?>
<div id="wrapper" class="wrapper clear">
    <article id="blog-<?=$blog->id?>" class="blog-item clear">
	<aside class="blog-info right">
	    <p class="blog-create-time">发布：<span class="time"><?= date('Y.m.d', $blog->createTime) ?></span></p>
	    <? if ($blog->category): ?>
    	    <p class="blog-category">分类：<a class="category" href="<?= $baseUrl . 'category/' . $blog->category->slug . '/' ?>"><?= $blog->category->name ?></a><span class="slug"><?= '(' . $blog->category->slug . ')' ?></span></p>
	    <? endif ?>
	    <? if ($blog->user): ?>
    	    <p class="blog-author">作者：<a class="nick" href="<?= $baseUrl . 'user/' . $blog->userId ?>"><?= $blog->user->nickName ?></a><span class="user"><?= '(' . $blog->user->user . ')' ?></span></p>
	    <? endif ?>
	</aside>
	<header class="blog-title">
	    <h2><a href="#"><?= $blog->title ?></a></h2>
	</header>
	<section class="blog-content"><?= htmlspecialchars_decode($blog->content) ?></section>
    </article>
    <?php include 'comment.php' ?>
</div>
<?php include 'footer.php' ?>